﻿using System.ServiceModel.Configuration;
using suanpan.API.Components.Behaviors.EndpointBehaviors;

namespace suanpan.API.Components.Behaviors.ErrorHandling
{
    public class RestBehaviorExtension : BehaviorExtensionElement
    {
        public override System.Type BehaviorType
        {
            get { return typeof(RestWebHttpBehavior); }
        }

        protected override object CreateBehavior()
        {
            return new RestWebHttpBehavior();
        }
    }
}
